package com.sh.activitystudy;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;

public class ActStartActivity extends AppCompatActivity implements View.OnClickListener{

    static final String TAG = "ning";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);
        Log.d(TAG,"ActStartActivity onCreate");
        setContentView(R.layout.activity_act_start);
        Button act_next = findViewById(R.id.btn_act_next);
        act_next.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        startActivity(new Intent(ActStartActivity.this, ActFinishActivity.class));
    }

    @Override
    protected void onStart() {
        Log.d(TAG,"ActStartActivity onStart");
        super.onStart();
    }

    @Override
    protected void onResume() {
        Log.d(TAG,"ActStartActivity onResume");
        super.onResume();
    }

    @Override
    protected void onPause() {
        Log.d(TAG,"ActStartActivity onPause");
        super.onPause();
    }

    @Override
    protected void onStop() {
        Log.d(TAG,"ActStartActivity onStop");
        super.onStop();
    }

    @Override
    protected void onDestroy() {
        Log.d(TAG,"ActStartActivity onDestroy");
        super.onDestroy();
    }

    @Override
    protected void onRestart() {
        Log.d(TAG,"ActStartActivity onDestroy");
        super.onRestart();
    }
}